package au.com.cgu.RescueUTest;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import au.com.cgu.RescueU.PolicyController;
import au.com.cgu.RescueU.Vehicle;

public class TestPolicy {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testVehicleGet() {
		PolicyController pc = new PolicyController();
		Vehicle[] vehs = pc.findPolicyVehicles("P1234");
		assertTrue("Nothing found", vehs != null && vehs.length > 0);
	}

}
